package org.rency.spring.cloud.boot.mvc.controller;

import org.springframework.security.web.csrf.CsrfToken;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ${todo}
 *
 * @author: Created by user_rcy@163.com on 2016/8/24.
 * @version: V1.0.0
 * @since JDK 1.8
 */
@RestController
public class CsrfController {

    @RequestMapping("/csrf")
    public CsrfToken csrf(CsrfToken token) {
        return token;
    }
}